package com.example.anno.factory;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Service;

@Service
public class CustomOrderedBeanFactoryProcessor implements BeanFactoryPostProcessor,
        Ordered {
    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
        System.out.println("-->OrderedBeanFactory Post Process") ;
    }

    @Override
    public int getOrder() {
        return 0;
    }
}
